from selenium.webdriver.common.by import By


#页面对象层 ： LoginPage()
class LoginPage():

    # 登录按钮对象
    login_link_elem = (By.LINK_TEXT,"登录")

    # 用户名对象
    username_elem = (By.ID,"username")

    # 密码对象
    password_elem = (By.ID,"password")

    # 验证码对象
    verify_elem = (By.ID, "verify_code")

    # 登录按钮对象
    login_button_elem = (By.CLASS_NAME,"J-login-submit")

    # 登录成功信息
    login_success_msg = (By.CLASS_NAME,"mu-m-phone")

    #登录失败消息
    login_error_msg = (By.CLASS_NAME,"layui-layer-content")


    # 登录后的首页
    my_page_elem = (By.XPATH,"//a[@href='/Home/Index/index.html']")